<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller as PController;
use Illuminate\Support\Facades\Redis;

class Controller extends PController
{
    /**
     * 加时操作
     */
    public function addExpire()
    {
        if(self::$userData && isset(self::$userData['token'])) {
            Redis::connection()->expire(self::$userData['token'],self::$userTokenExpire);
        }
    }
}
